<?php
/**
 * OrganisationAccountFixture
 *
 */
class OrganisationAccountFixture extends CakeTestFixture {

/**
 * Fields
 *
 * @var array
 */
	public $fields = array(
		'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary'),
		'organisation_id' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'key' => 'index'),
		'username' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 50, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'password' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 100, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'pass_salt' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 50, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'created_dt' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
		'modified_dt' => array('type' => 'timestamp', 'null' => true, 'default' => NULL),
		'last_accessed_dt' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
		'active' => array('type' => 'boolean', 'null' => true, 'default' => '0'),
		'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'organisation_id' => array('column' => 'organisation_id', 'unique' => 0)),
		'tableParameters' => array('charset' => 'latin1', 'collate' => 'latin1_swedish_ci', 'engine' => 'InnoDB')
	);

/**
 * Records
 *
 * @var array
 */
	public $records = array(
		array(
			'id' => 1,
			'organisation_id' => 1,
			'username' => 'Lorem ipsum dolor sit amet',
			'password' => 'Lorem ipsum dolor sit amet',
			'pass_salt' => 'Lorem ipsum dolor sit amet',
			'created_dt' => '2012-03-14 12:36:38',
			'modified_dt' => 1331728598,
			'last_accessed_dt' => '2012-03-14 12:36:38',
			'active' => 1
		),
	);
}
